package com.property.mapper;

import com.property.pojo.Staff;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface StaffMapper {
    //查询所有员工信息
    List<Staff> findAllStaff();
    //添加员工
    int saveStaff(Staff staff);
    //删除员工
    int deleteStaff(Integer sId);
    //根据id查询员工
    Staff findBysId(Integer sId);
    //修改用户
    int updateStaff(Staff staff);

}
